package com.xur.springboot.controller;

import com.xur.springboot.entity.Tabclass;
import com.xur.springboot.service.TabService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TabController {

    @Resource
    private TabService tabService;
    //在鸿蒙前端获取数据时需要解析JSON数据
    //直接返回json数据
    @GetMapping("/icon")
    public List<Tabclass> icon(){
        return tabService.queryTab();

    }
}
